package lab02.test13;

import java.util.Scanner;

public class Test13 {
    public static void main(String[] args) {
        //创建类Gymnastics新对象
        Gymnastics gymnastics = new Gymnastics();
        double[] scores = new double[5];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < 5; i++) {
            int couter = i + 1;

            System.out.println("请输入第" + couter + "个学生的分数。");

            scores[i] = scanner.nextDouble();
        }

        //创建School类新对象
        School school = new School();

        System.out.println(school.average(scores));
        System.out.println(gymnastics.average(scores));

    }
}
